package com.tyson.server.autogenerator.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tyson.server.autogenerator.pojo.Admin;
import com.tyson.server.common.Result;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author tyson
 * @since 2021-11-03
 */
public interface IAdminService extends IService<Admin> {

   /**
    * 登录之后返回token
    * @param username
    * @param password
    * @param request
    * @return
    */
    Result login(String username, String password, HttpServletRequest request);

    Admin getAdminByUserName(String username);
}
